package com.jh.example;

public class WhileTest2Charpt35 
{

	/**
	 * @param args
	 */
	public static void main(String[] args) 
	{
		int m = 150;
		int n = 330;
		while(m!=n)
		{
			System.out.printf("[ %d , %d]",m,n);
			if(m>n)m-=n;
			else if(n>m)n-=m;
		}
		System.out.println();
		System.out.printf("최대공약수 : %d\n",m);
	}

}
